package com.ponhu.ea2.goodsCenter.provider.service;

import com.ponhu.ea2.entity.PhProperty;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 属性表  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-10-19
 */
public interface PhPropertyService extends IService<PhProperty> {

    /**
     * 根据类目ID查询当前类目及其所有上级类目的所有属性
     *
     * @param categoryId
     * @param level
     * @return
     */
    List<PhProperty> getPropertyByCategoryId(Long categoryId, Integer level);

}
